﻿@model RBS.Core.Model.Hotel.H_Hotel_CookbookCategory
@{
    ViewBag.Title = "商品分类";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<!--导航栏-->
@{
    @Html.Partial("_Location");
}
<!--/导航栏-->
<!--内容-->
<div class="content-tab-wrap">
    <div id="floatHead" class="content-tab">
        <div class="content-tab-ul-wrap">
            <ul>
                <li><a href="javascript:;" onclick="tabs(this);" class="selected">商品分类</a></li>
            </ul>
        </div>
    </div>
</div>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true) 
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model=>model.Parentid)
    @Html.HiddenFor(model=>model.HotelId)
    <div class="tab-content">

        <dl>
            <dt>名称
            </dt>
            <dd> 
                @Html.TextBoxFor(model => model.Name, null, new { @class = "input normal",datatype="*1-10" })
                <span class="Validform_checktip">*菜谱分类名称 小食，凉菜，热菜，汤，酒水，主食等</span> 
            </dd>
        </dl>
        <dl>
            <dt>编码</dt>
            <dd>
                @Html.TextBoxFor(model => model.Code, null, new { @class = "input normal" ,datatype="*2-10", ajaxurl = @Url.Action("CheckCookCategoryCode")+"?cid="+Model.Id })
                <span class="Validform_checktip">*</span> 
            </dd>
        </dl> 
        <dl>
            <dt>配菜部门</dt>
            <dd>
                <div class="rule-multi-radio">  
                    <span id="action_type">
                        @foreach (var role in new RBS.Core.BLL.Hotel.H_Hotels_Role().GetModelList(" HotelId=" + Model.HotelId))
                        {
                            <label for="Cuisine">@role.RoleName</label>
                            @Html.RadioButtonFor(model => model.RoleId, @role.Id, new { @id = "radio1", @name = "rdolstState" })  
                        }
                    </span>
                </div> 
                <span class="Validform_checktip">*配菜部门</span>
            </dd>
        </dl>
        <dl>
           <dt>类别</dt>
            <dd>
                <div class="rule-multi-radio">  
                    <span id="action_type"> 
                        <label for="IsDisplay">菜谱/酒水</label>
                        @Html.RadioButtonFor(model => model.IsDisplay,0, new { @id = "radio1", @name = "rdolstState" })   
                         <label for="IsDisplay">配套用品</label>
                            @Html.RadioButtonFor(model => model.IsDisplay,1, new { @id = "radio2", @name = "rdolstState" })   
                    </span>
                </div> 
                <span class="Validform_checktip"></span>
            </dd>
        </dl> 
    </div>
    <!--/内容-->

    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-list">
            <input type="submit" value="提交保存" class="btn" />
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />

        </div>
        <div class="clear"></div>
    </div>
    <!--/工具栏-->
        
}










